package com.qzsf.backend.common;

/*
 * @Author: Dennis Chen
 * @CreateTime: 2024/10/11 10:29 周五
 * @Email 1429278462@qq.com
 * @Remark 随机验证码生成器
 * @Version 1.0
 */
import java.util.Random;
public class VerificationCodeGenerator {

    public static String generateCode() {
        Random random = new Random();
        int code = 100000 + random.nextInt(900000); // 生成6位随机数
        return String.valueOf(code);
    }
}
